package com.xxq.aidlclient.Activity;

import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class BootReceiver extends BroadcastReceiver {
    private static final String TAG = "BootReceiver";
    private static final String BOOT_COMPLETED = "android.intent.action.BOOT_COMPLETED";

    public BootReceiver() {
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent.getAction().equals(BOOT_COMPLETED)) {
            Log.d(TAG,intent.getAction());
            Intent intent0 = new Intent();
            intent0.setComponent(new ComponentName("com.xxq.aidlserver","com.xxq.aidlserver.AidlService"));
            context.startService(intent0);
        }
    }
}
